function exibe_submenu(par) { 
	var formStyle=document.getElementById(par).style;

	document.getElementById('submenu_orgao').style.display='none';
	document.getElementById('submenu_material').style.display='none';
	document.getElementById('submenu_estoque').style.display='none';
	document.getElementById('submenu_cheques').style.display='none';
	document.getElementById('submenu_relatorios').style.display='none';

	formStyle.display='block';
}

function altura_principal() {
	altura = screen.height - 300;
	altura_interna = altura - 100;
	
	document.getElementById('principal').style.height=altura+'px';
	document.getElementById('corpo').style.height=altura_interna+'px';
	document.getElementById('area_submenus').style.height=altura_interna+'px';
}


var myimages=new Array()
function preloadimages() {
	var root = "../icone/";
	for (i=0;i<preloadimages.arguments.length;i++) {
		myimages[i]=new Image();
		myimages[i].src=root + preloadimages.arguments[i];
	}
}
preloadimages("icone_orgao.jpg","icone_orgao_over.jpg","icone_materiais.jpg","icone_materiais_over.jpg","icone_cheque.jpg","icone_cheque_over.jpg","icone_relatorios.jpg","icone_relatorios_over.jpg");